Skip to content

Instantly share code, notes, and snippets.

@wesbos
wesbos / README.md
Last active November 26, 2026 19:49
Find high-churn folders driving Backblaze bztransmit CPU crazy on macOS

Finding high-churn folders that drive Backblaze's bztransmit crazy

Your Mac's bztransmit is pinning a CPU core. Backblaze's status says a puzzling amount of "remaining files". The cause: some app is churning out thousands of tiny files — mostly caches — and Backblaze is deduping, checksumming and uploading every one of them, all day.

This is a walkthrough of how to find the offenders and exclude them, plus the measured results and the catch nobody mentions (exclusions fix the churn, but not all of the CPU — see the end).

@karpathy
karpathy / microgpt.py
Last active November 26, 2026 19:50
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@scruss
scruss / img2blocks.py
Created August 1, 2025 02:09
img2blocks - bitmap to Unicode sextants
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from PIL import Image
import PIL.ImageOps
import numpy as np
# give usage and exit if no arguments
if len(sys.argv) == 1:

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active November 26, 2026 19:31
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

package com.vlsch.designsys.ui.util
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.compose.runtime.withFrameNanos
import androidx.compose.ui.Modifier
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@yan-foto
yan-foto / 0-README.txt
Last active November 26, 2026 19:22
DeDRM Adobe Digital Edition Books
Convenient DeDRM Scripts
-------------------------
**NOTE**: read https://blog.quaintous.com/2021/02/16/remove-drm-from-ebooks/ to find out what this gist is good for.
* ./init.sh: extracts Adobe Digital Editions private key and required files to DeDRM.
* ./dedrm: removes DRM from given ebook (pdf/epub)
If you are using this for the first time, make sure that you have authenticated your Adobe Digital Editions (ADE) and run './init.sh'. Import any DRM-protected file into ADE and run 'dedrm.sh':
@ctrueden
ctrueden / Linux-Meta-Quest.md
Created July 23, 2025 12:14
Linux + Meta Quest 3S

2025-04-27: The way I play VR games wirelessly on Linux e.g. from Steam is to use WiVRn (a fork of Monado) via the Envision orchestrator.

Here's the path I followed to get it working with my Meta Quest 3S:

  1. Download the appImage as linked from the Envision page of the Linux VR Adventures wiki.

  2. Launch Envision from the terminal (so that you can see its console messages). In the GUI at the bottom is a combo box. Select WiVRn as the desired system. Then at the top of the GUI is a button to configure and build it. You will likely need to apt install some prerequisites first. (2025-04-23) Envision wanted me to installed these packages for Lighthouse profile:

    sudo apt install libeigen3-dev glslang-tools glslc libbsd-dev libdrm-dev \
        libusb-1.0-0 libusb-1.0-0-dev libx11-xcb-dev libxcb-